var index = {
    color: ['rgb(68,114,196)', 'rgb(237,125,49)', 'rgb(165,165,165)', 'rgb(255,192,0)',
        'rgb(153,216,123)', "rgb(0,174,157)", 'rgb(101,194,148)', 'rgb(199,126,181)',
        'rgb(0,154,214)', 'rgb(175,180,219)', 'rgb(163,207,98)', 'rgb(37,133,166)', 'rgb(105,77,159)', 'rgb(243,145,169)'],
    county: ['市属', '云岩区', '南明区', '观山湖区', '花溪区', '乌当区', '白云区', '清镇市', '修文县', '开阳县', '息烽县','贵安新区'],
    satisfactionCounty: ['均值', '市属', '云岩区', '南明区', '观山湖区', '花溪区', '乌当区', '白云区', '清镇市', '修文县', '开阳县', '息烽县','贵安新区'],
    commonPieLegend: {
        orient: 'vertical',
        right: 0,
        data: ['幼儿园', '小学', '初中', '高中']
    },
    isShowSmallDataLabel: true,
    isShowDataLabel: false,//是否显示echarts数据标签
    isExport: true,//是否可以导出
    isShowDataTable: true,//是否显示数据表格
    toolBoxShow: false,
    //全体样本
    chart1: function (data) {
        $(".txt1").text(data['totalSample']);//文本赋值
        var myChart = echarts.init(document.getElementById('allGradeNum'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: ['幼儿园', '小学', '初中', '高中']
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['xdTotalSample']['2019'],
                    label: {
                        normal: {
                            show: index.isShowSmallDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['xdTotalSample']['2020'],
                    label: {
                        normal: {
                            show: index.isShowSmallDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['xdTotalSample']['2021'],
                    label: {
                        normal: {
                            show: index.isShowSmallDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
    },
    //学生在年级上的分布
    chart2: function (data) {
        $('.txt2').text(data['totalSamplePercentage'] + data['studentTotalSamplePercentage']);
        var myChart = echarts.init(document.getElementById('allStuOnGrade'));
        var option = {
            animation: false,
            tooltip: {
                trigger: 'item',
                formatter: '{a} <br/>{b} : {c}%'
            },
            legend: {
                orient: 'vertical',
                right: 0,
                data: ['小学', '初中', '高中']
            },
            color: index.color, // 自定义颜色
            series: [
                {
                    name: '访问来源',
                    type: 'pie',
                    minAngle: 10, // 最小的扇区角度（0 ~ 360），用于防止某个值过小导致扇区太小影响交互
                    radius: ['30%', '70%'],
                    center: ['48%', '58%'],
                    label: {
                        formatter: '{b|{b}}\n（{c}%）\n', // 这里的设置就是饼图的标签内容及其格式
                        rich: {
                            b: {
                                align: 'center'
                            }
                        }
                    },
                    data: data['studentTotalSample']
                }
            ]
        };
        myChart.setOption(option);
    },
    //学生在区县上的分布
    chart3: function (data) {
        var myChart = echarts.init(document.getElementById('allStuOnCounty'));
        var option = {
            animation: false,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                show: false
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: {
                type: 'value',
                boundaryGap: [0, 0.01]
            },
            yAxis: {
                inverse: true,
                type: 'category',
                data: index.county
            },
            series: [
                {
                    name: '学生人数',
                    type: 'bar',
                    data: data['studentAreaTotalSample'],
                    label: {
                        normal: {
                            show: index.isShowSmallDataLabel,//开启显示
                            position: 'right',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
    },
    //老师在年级上的分布
    chart4: function (data) {
        $('.txt3').text(data['teacherTotalSamplePercentage']);
        var myChart = echarts.init(document.getElementById('allTeaOnGrade'));
        var option = {
            animation: false,
            tooltip: {
                trigger: 'item',
                formatter: '{a} <br/>{b} : {c}%'
            },
            legend: index.commonPieLegend,
            color: index.color, // 自定义颜色
            series: [
                {
                    name: '访问来源',
                    type: 'pie',
                    minAngle: 10, // 最小的扇区角度（0 ~ 360），用于防止某个值过小导致扇区太小影响交互
                    radius: ['30%', '70%'],
                    center: ['48%', '58%'],
                    label: {
                        formatter: '{b|{b}}\n（{c}%）\n', // 这里的设置就是饼图的标签内容及其格式
                        rich: {
                            b: {
                                align: 'center'
                            }
                        }
                    },
                    data: data['teacherTotalSample']
                }
            ]
        };
        myChart.setOption(option);
    },
    //老师在区县上的分布
    chart5: function (data) {
        var myChart = echarts.init(document.getElementById('allTeaOnCounty'));
        var option = {
            animation: false,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                show: false
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: {
                type: 'value',
                boundaryGap: [0, 0.01]
            },
            yAxis: {
                inverse: true,
                type: 'category',
                data: index.county
            },
            series: [
                {
                    name: '教师人数',
                    type: 'bar',
                    data: data['teacherAreaTotalSample'],
                    label: {
                        normal: {
                            show: index.isShowSmallDataLabel,//开启显示
                            position: 'right',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                return value.data + "%"
                            }
                        }

                    }

                }
            ]
        };
        myChart.setOption(option);
    },


    //家长在年级上的分布
    chart6: function (data) {
        $('.txt4').text(data['parentTotalSamplePercentage']);
        var myChart = echarts.init(document.getElementById('allParOnGrade'));
        var option = {
            animation: false,
            tooltip: {
                trigger: 'item',
                formatter: '{a} <br/>{b} : {c}%'
            },
            legend: index.commonPieLegend,
            color: index.color, // 自定义颜色
            series: [
                {
                    name: '访问来源',
                    type: 'pie',
                    minAngle: 10, // 最小的扇区角度（0 ~ 360），用于防止某个值过小导致扇区太小影响交互
                    radius: ['30%', '70%'],
                    center: ['48%', '58%'],
                    label: {
                        formatter: '{b|{b}}\n（{c}%）\n', // 这里的设置就是饼图的标签内容及其格式
                        rich: {
                            b: {
                                align: 'center'
                            }
                        }
                    },
                    data: data['parentTotalSample']
                }
            ]
        };
        myChart.setOption(option);
    },
    //家长在区县上的分布
    chart7: function (data) {
        var myChart = echarts.init(document.getElementById('allParOnCounty'));
        var option = {
            animation: false,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                show: false
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: {
                type: 'value',
                boundaryGap: [0, 0.01]
            },
            yAxis: {
                inverse: true,
                type: 'category',
                data: index.county
            },
            series: [
                {
                    name: '家长人数',
                    type: 'bar',
                    data: data['parentAreaTotalSample'],
                    label: {
                        normal: {
                            show: index.isShowSmallDataLabel,//开启显示
                            position: 'right',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
    },

    //幼儿园园长在区县上的分布
    chart8: function (data) {
        $('.txt5').text(data['yzTotalSamplePercentage']);
        var myChart = echarts.init(document.getElementById('allPriOnCounty'));
        var option = {
            animation: false,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                show: false
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: {
                type: 'value',
                boundaryGap: [0, 0.01]
            },
            yAxis: {
                inverse: true,
                type: 'category',
                data: index.county
            },
            series: [
                {
                    name: '幼儿园园长人数',
                    type: 'bar',
                    data: data['yzAreaTotalSample'],
                    label: {
                        normal: {
                            show: index.isShowSmallDataLabel,//开启显示
                            position: 'right',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
    },

    //人大代表/政协委员在区县上的分布
    chart9: function (data) {
        $('.txt6').text(data['rddbTotalSamplePercentage']);
        var myChart = echarts.init(document.getElementById('allMemOnCounty'));
        var option = {
            animation: false,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                show: false
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: {
                type: 'value',
                boundaryGap: [0, 0.01]
            },
            yAxis: {
                inverse: true,
                type: 'category',
                data: index.county
            },
            series: [
                {
                    name: '人大代表/政协委员人数',
                    type: 'bar',
                    data: data['rddbAreaTotalSample'],
                    label: {
                        normal: {
                            show: index.isShowSmallDataLabel,//开启显示
                            position: 'right',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
    },
    /**
     *@description 创建数据表格
     *@author XieXing
     * @param data 数据
     * @param xAxis 横坐标
     * @param tableClass 对应表格class
     *@date 2021/12/29 16:21
     */
    createTable: function (data, xAxis, tableClass) {
        if (!index.isShowDataTable) {
            return false;
        }
        var str = "<tr><th>年份</th>";
        for (var i = 0; i < xAxis.length; i++) {
            str += ("<th>" + xAxis[i] + "</th>");
        }
        str += "</tr>";
        for (var obj in data) {
            str += "<tr><td>" + obj + "</td>";
            for (var i = 0; i < data[obj].length; i++) {
                if(data[obj][i]=="0"){
                    str += ("<td></td>");
                }else{
                    str += ("<td>" + data[obj][i] + "%</td>");
                }
            }
            str += "</tr>";
        }
        $(tableClass).html(str);
    },
    //全市整体满意度
    chart10: function (data) {
        $(".txt7").text(data['totalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfaction'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                // orient: 'vertical',
                bottom: 0
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['areaSamplePercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['areaSamplePercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['areaSamplePercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);

        index.createTable(data['areaSamplePercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table");
    },

    //全市整体满意度分学段情况
    chart11: function (data) {
        $(".txt8").text(data['xdSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnGrade'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: ['均值', '幼儿园', '小学', '初中', '高中']
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['xdSamplePercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['xdSamplePercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['xdSamplePercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);

        index.createTable(data['xdSamplePercentage'], ['均值', '幼儿园', '小学', '初中', '高中'], ".data-table .all-satisfaction-data-table-xd");

    },


    //学生整体满意度
    chart12: function (data) {
        $(".txt9").text(data['studentAreaSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnStudent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['studentAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['studentAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['studentAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['studentAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-student");

    },


    //教师整体满意度
    chart13: function (data) {
        animation: false,
            $(".txt10").text(data['teacherAreaSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnTeacher'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['teacherAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['teacherAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['teacherAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['teacherAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-teacher");

    },


    //家长整体满意度
    chart14: function (data) {
        $(".txt11").text(data['parentAreaSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnParent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['parentAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['parentAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['parentAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['parentAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-parent");

    },
    //幼儿园园长整体满意度
    chart15: function (data) {
        $(".txt12").text(data['yeyYzTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnYz'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                show: false,
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2021',
                    type: 'bar',
                    data: data['yeyYzAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowSmallDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
    },

    //人大代表/政协委员整体满意度
    chart16: function (data) {
        $(".txt13").text(data['yeyRddbTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnRd'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                show: false,
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2021',
                    type: 'bar',
                    data: data['yeyRddbAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowSmallDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
    },

    //高中综合满意度
    chart17: function (data) {
        $(".txt14").text(data['gzTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnSenior'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['gzAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['gzAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['gzAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['gzAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-senior");

    },
    //高中学生
    chart18: function (data) {
        $(".txt15").text(data['gzStudentTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnSeniorStudent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['gzStudentAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['gzStudentAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['gzStudentAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['gzStudentAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-senior-student");

    },
    //高中教师
    chart19: function (data) {
        $(".txt16").text(data['gzTeacherTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnSeniorTeacher'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['gzTeacherAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['gzTeacherAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['gzTeacherAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['gzTeacherAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-senior-teacher");

    },
    //高中家长
    chart20: function (data) {
        $(".txt17").text(data['gzParentTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnSeniorParent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['gzParentAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['gzParentAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['gzParentAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['gzParentAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-senior-parent");

    },
    //处理分项目数据
    itemDataDeal: function (itemObject) {
        var arr = [];
        for (var obj in itemObject) {
            var serie = {
                name: obj,
                type: 'bar',
                data: itemObject[obj],
                label: {
                    normal: {
                        show: index.isShowSmallDataLabel,//开启显示
                        position: 'inside',//柱形上方
                        textStyle: { //数值样式
                            color: '#02030a'
                        }
                    }
                },
                stack: "1"
            };
            arr.push(serie);
        }
        return arr;
    },
    //高中学生分项目
    chart21: function (data) {
        $(".txt18").text(data['gzStudentProjectIndicators']);//文本赋值
        var myChart = echarts.init(document.getElementById('itemSatisfactionOnSeniorStudent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: Object.getOwnPropertyNames(data['gzStudentProjectIndicatorsList']),
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: index.itemDataDeal(data['gzStudentProjectIndicatorsList'])
        };
        myChart.setOption(option);
    },
    //高中教师分项目
    chart22: function (data) {
        $(".txt19").text(data['gzTeacherProjectIndicators']);//文本赋值
        var myChart = echarts.init(document.getElementById('itemSatisfactionOnSeniorTeacher'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: Object.getOwnPropertyNames(data['gzTeacherProjectIndicatorsList']),
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: index.itemDataDeal(data['gzTeacherProjectIndicatorsList'])
        };
        myChart.setOption(option);
    },

    //高中家长分项目
    chart23: function (data) {
        $(".txt20").text(data['gzParentProjectIndicators']);//文本赋值
        var myChart = echarts.init(document.getElementById('itemSatisfactionOnSeniorParent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: Object.getOwnPropertyNames(data['gzParentProjectIndicatorsList']),
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: index.itemDataDeal(data['gzParentProjectIndicatorsList'])
        };
        myChart.setOption(option);
    },

    //初中综合满意度
    chart24: function (data) {
        $(".txt21").text(data['czTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnJunior'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['czAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['czAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['czAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['czAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-junior");
    },
    //初中学生
    chart25: function (data) {
        $(".txt22").text(data['czStudentTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnJuniorStudent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['czStudentAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['czStudentAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['czStudentAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['czStudentAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-junior-student");

    },
    //初中教师
    chart26: function (data) {
        $(".txt23").text(data['czTeacherTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnJuniorTeacher'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['czTeacherAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['czTeacherAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['czTeacherAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['czTeacherAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-junior-teacher");

    },
    //初中家长
    chart27: function (data) {
        $(".txt24").text(data['czParentTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnJuniorParent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['czParentAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['czParentAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['czParentAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['czParentAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-junior-parent");

    },
    //初中学生分项目
    chart28: function (data) {
        $(".txt25").text(data['czStudentProjectIndicators']);//文本赋值
        var myChart = echarts.init(document.getElementById('itemSatisfactionOnJuniorStudent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: Object.getOwnPropertyNames(data['czStudentProjectIndicatorsList']),
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: index.itemDataDeal(data['czStudentProjectIndicatorsList'])
        };
        myChart.setOption(option);
    },
    //初中教师分项目
    chart29: function (data) {
        $(".txt26").text(data['czTeacherProjectIndicators']);//文本赋值
        var myChart = echarts.init(document.getElementById('itemSatisfactionOnJuniorTeacher'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: Object.getOwnPropertyNames(data['czTeacherProjectIndicatorsList']),
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: index.itemDataDeal(data['czTeacherProjectIndicatorsList'])
        };
        myChart.setOption(option);
    },

    //初中家长分项目
    chart30: function (data) {
        $(".txt27").text(data['czParentProjectIndicators']);//文本赋值
        var myChart = echarts.init(document.getElementById('itemSatisfactionOnJuniorParent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: Object.getOwnPropertyNames(data['czParentProjectIndicatorsList']),
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: index.itemDataDeal(data['czParentProjectIndicatorsList'])
        };
        myChart.setOption(option);
    },


    //小学综合满意度
    chart31: function (data) {
        $(".txt28").text(data['xxTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnPrimary'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['xxAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['xxAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['xxAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['xxAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-primary");

    },
    //小学学生
    chart32: function (data) {
        $(".txt29").text(data['xxStudentTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnPrimaryStudent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['xxStudentAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['xxStudentAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['xxStudentAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['xxStudentAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-primary-student");

    },
    //小学教师
    chart33: function (data) {
        $(".txt30").text(data['xxTeacherTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnPrimaryTeacher'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['xxTeacherAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['xxTeacherAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['xxTeacherAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['xxTeacherAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-primary-teacher");

    },
    //小学家长
    chart34: function (data) {
        $(".txt31").text(data['xxParentTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnPrimaryParent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['xxParentAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['xxParentAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['xxParentAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['xxParentAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-primary-parent");

    },
    //小学学生分项目
    chart35: function (data) {
        $(".txt32").text(data['xxStudentProjectIndicators']);//文本赋值
        var myChart = echarts.init(document.getElementById('itemSatisfactionOnPrimaryStudent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: Object.getOwnPropertyNames(data['xxStudentProjectIndicatorsList']),
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: index.itemDataDeal(data['xxStudentProjectIndicatorsList'])
        };
        myChart.setOption(option);
    },
    //小学教师分项目
    chart36: function (data) {
        $(".txt33").text(data['xxTeacherProjectIndicators']);//文本赋值
        var myChart = echarts.init(document.getElementById('itemSatisfactionOnPrimaryTeacher'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: Object.getOwnPropertyNames(data['xxTeacherProjectIndicatorsList']),
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: index.itemDataDeal(data['xxTeacherProjectIndicatorsList'])
        };
        myChart.setOption(option);
    },

    //小学家长分项目
    chart37: function (data) {
        $(".txt34").text(data['xxParentProjectIndicators']);//文本赋值
        var myChart = echarts.init(document.getElementById('itemSatisfactionOnPrimaryParent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: Object.getOwnPropertyNames(data['xxParentProjectIndicatorsList']),
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: index.itemDataDeal(data['xxParentProjectIndicatorsList'])
        };
        myChart.setOption(option);
    },


    //幼儿园综合满意度
    chart38: function (data) {
        $(".txt35").text(data['yeyTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnKindergarten'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['yeyAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['yeyAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['yeyAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['yeyAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-Kindergarten");

    },
    //幼儿园教师
    chart39: function (data) {
        $(".txt36").text(data['yeyTeacherTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnKindergartenTeacher'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['yeyTeacherAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['yeyTeacherAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['yeyTeacherAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['yeyTeacherAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-Kindergarten-teacher");

    },
    //幼儿园家长
    chart40: function (data) {
        $(".txt37").text(data['yeyParentTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnKindergartenParent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2019', '2020', '2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2019',
                    type: 'bar',
                    barGap: 0,
                    data: data['yeyParentAreaSatisfactionPercentage']['2019'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2020',
                    type: 'bar',
                    data: data['yeyParentAreaSatisfactionPercentage']['2020'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'inside',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                },
                {
                    name: '2021',
                    type: 'bar',
                    data: data['yeyParentAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
        index.createTable(data['yeyParentAreaSatisfactionPercentage'], index.satisfactionCounty, ".data-table .all-satisfaction-data-table-Kindergarten-parent");

    },
    //幼儿园园长
    chart41: function (data) {
        $(".txt38").text(data['yeyYzTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnKindergartenYz'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2021',
                    type: 'bar',
                    data: data['yeyYzAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowSmallDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
    },

    //人大代表/政协委员
    chart42: function (data) {
        $(".txt39").text(data['yeyRddbTotalSatisfaction']);//文本赋值
        var myChart = echarts.init(document.getElementById('allSatisfactionOnKindergartenRddb'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['2021'],
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: [
                {
                    name: '2021',
                    type: 'bar',
                    data: data['yeyRddbAreaSatisfactionPercentage']['2021'],
                    label: {
                        normal: {
                            show: index.isShowSmallDataLabel,//开启显示
                            position: 'top',//柱形上方
                            textStyle: { //数值样式
                                color: '#02030a'
                            },
                            formatter: function (value) {
                                if (value.data == '0') {
                                    return "";
                                }
                                return value.data + "%"
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
    },
    //幼儿园教师分项目
    chart43: function (data) {
        $(".txt40").text(data['yeyTeacherProjectIndicators']);//文本赋值
        var myChart = echarts.init(document.getElementById('itemSatisfactionOnKindergartenTeacher'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: Object.getOwnPropertyNames(data['yeyTeacherProjectIndicatorsList']),
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: index.itemDataDeal(data['yeyTeacherProjectIndicatorsList'])
        };
        myChart.setOption(option);
    },
    //幼儿园家长分项目
    chart44: function (data) {
        $(".txt41").text(data['yeyParentProjectIndicators']);//文本赋值
        var myChart = echarts.init(document.getElementById('itemSatisfactionOnKindergartenParent'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: Object.getOwnPropertyNames(data['yeyParentProjectIndicatorsList']),
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: index.itemDataDeal(data['yeyParentProjectIndicatorsList'])
        };
        myChart.setOption(option);
    },

    //幼儿园园长
    chart45: function (data) {
        $(".txt42").text(data['yeyYzProjectIndicators']);//文本赋值
        var myChart = echarts.init(document.getElementById('itemSatisfactionOnKindergartenYz'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: Object.getOwnPropertyNames(data['yeyYzProjectIndicatorsList']),
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: index.itemDataDeal(data['yeyYzProjectIndicatorsList'])
        };
        myChart.setOption(option);
    },

    //人大代表/政协委员指标
    chart46: function (data) {
        $(".txt43").text(data['yeyRddbProjectIndicators']);//文本赋值
        var myChart = echarts.init(document.getElementById('itemSatisfactionOnKindergartenRddb'));
        var option = {
            animation: false,
            color: index.color,
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: Object.getOwnPropertyNames(data['yeyRddbProjectIndicatorsList']),
                top: 'bottom'
            },
            toolbox: {
                show: index.toolBoxShow,
                orient: 'vertical',
                right: 'right',
                feature: {
                    mark: {show: true},
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: {show: false},
                    data: index.satisfactionCounty
                }
            ],
            yAxis: [
                {
                    type: 'value'
                }
            ],
            series: index.itemDataDeal(data['yeyRddbProjectIndicatorsList'])
        };
        myChart.setOption(option);
    },
    canvas2Img: function (claObject) {
        //将第一个画布作为基准。
        var baseCanvas = $(claObject).find("canvas").first()[0];
        if (!baseCanvas) {
            return false;
        }
        var width = baseCanvas.width;
        var height = baseCanvas.height;
        var ctx = baseCanvas.getContext("2d");
        //遍历，将后续的画布添加到在第一个上
        $(claObject).find("canvas").each(function (i, canvasObj) {
            if (i > 0) {
                var canvasTmp = $(canvasObj)[0];
                ctx.drawImage(canvasTmp, 0, 0, width, height);
            }
        });
        //获取base64位的url
        var base64Str = baseCanvas.toDataURL();
        $(claObject).html("<img src=" + base64Str + " alt='图片不存在'> ");
        return baseCanvas.toDataURL();
    },
    init2: function () {
        if (!index.isExport) {
            return false;
        }
        var echarts = $('.chart');
        for (var i = 0; i < echarts.length; i++) {
            index.canvas2Img(echarts[i]);
        }
    },
    init: function () {
        layui.use(['layer'], function () {
            var layer = layui.layer;
            var loading = layer.load(1);
            // $.get("/reportData/getData", {}, function (data) {
            $.get("/static/json/city_report4.0.json", {}, function (data) {
            // $.get("/static/json/killInvalidData/city_report.json", {}, function (data) {
                index.chart1(data);
                index.chart2(data);
                index.chart3(data);
                index.chart4(data);
                index.chart5(data);
                index.chart6(data);
                index.chart7(data);
                index.chart8(data);
                index.chart9(data);
                index.chart10(data);
                index.chart11(data);
                index.chart12(data);
                index.chart13(data);
                index.chart14(data);
                index.chart15(data);
                index.chart16(data);
                index.chart17(data);
                index.chart18(data);
                index.chart19(data);
                index.chart20(data);
                index.chart21(data);
                index.chart22(data);
                index.chart23(data);
                index.chart24(data);
                index.chart25(data);
                index.chart26(data);
                index.chart27(data);
                index.chart28(data);
                index.chart29(data);
                index.chart30(data);
                index.chart31(data);
                index.chart32(data);
                index.chart33(data);
                index.chart34(data);
                index.chart35(data);
                index.chart36(data);
                index.chart37(data);
                index.chart38(data);
                index.chart39(data);
                index.chart40(data);
                index.chart41(data);
                index.chart42(data);
                index.chart43(data);
                index.chart44(data);
                index.chart45(data);
                index.chart46(data);
                index.init2();
                layer.close(loading);
            });

        });


    }
};

